home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2002 #11
/
Amiga Plus CD - 2002 - No. 11.iso
/
Tools
/
AmigaSystem
/
Scalos
/
BWS_Scalos
/
Scalos_Info
/
Install
< prev
next >
Wrap
Text File
|
2002-10-28
|
3KB
|
149 lines
; Script created by Bruce Steers bsteers@ukonline.co.uk
(set ver "$VER: Install_Scalos_Info 3.0b (11.09.2001)")
(set verN "3.0b")
(set v39 (>= (/ (getversion "exec.library" (resident)) 65536) 39))
; getversion of existing module
(set vernum (getversion "Scalos:modules/Information.module"))
(set oldverV (/ vernum 65536))
(set oldverR (- vernum (* ver 65536) ) )
(set oldver (cat oldverV"."oldverR))
(set srcdir (pathonly @icon))
(set origmod "Scalos:modules/V2_Information.module")
(set newmod "Scalos:modules/Information.module")
(welcome "\nWelcome to the Scalos_Information "verN" Install Script\nThis will Update your Information.module")
(set @default-dest "Scalos:modules")
(complete 10)
(if (exists origmod (noreq))
((set instype
(askbool
(prompt "\n\nwould you like to install the New Information.module\n\nOr Revert back to the original one?")
(choices "Install New" "Revert to Original")
(help @default-askbool)
)
))
(set instype 1)
)
(complete 20)
(if (= instype 1)
(
(if (= oldverV 2)
(if
(askbool
(prompt "\n\nBackUp Original V2 Information.module\n\nRename your Existing Information.module\nas V2_Information.module")
(help @default-askbool)
)
(
(if (exists origmod (noreq))
(delete origmod (optional "force") (infos))
)
(rename newmod origmod)
)
)
)
(complete 40)
(copyfiles
(source "Information.module")
(dest @default-dest)
(infos)
)
(set prefsdest "Scalos:Prefs/Modules")
(if (not (exists prefsdest) )
(makedir prefsdest (infos))
)
(copyfiles
(source "Information.prefs")
(dest prefsdest)
(infos)
)
(complete 50)
(copyfiles
(source "Scalos_Information.guide")
(dest "Scalos:Docs")
(prompt "Install Scalos_Information.guide ?")
(help @copyfiles-help)
(confirm)
(infos)
)
(complete 60)
(copylib
(source "/libs/amigaini.library")
(dest "Libs:")
(prompt "Install AmigaINI.library ?")
(help @copylib-help)
(confirm)
(infos)
)
(complete 70)
(copylib
(source "/libs/BetterString.mcc")
(dest "Mui:Libs/mui")
(prompt "Install BetterString.mcc ?")
(help @copylib-help)
(confirm)
(infos)
)
(complete 80)
(copylib
(source "/libs/BetterString.mcp")
(dest "Mui:Libs/mui")
(prompt "Install BetterString.mcp ?")
(help @copylib-help)
(confirm)
(infos)
)
(complete 90)
(set @default-dest "Scalos:")
(complete 100)
(exit "\n\n" @app-name " Installaton is now over.\n\nPlease Read the Docs to understand how to use Scalos_Info "verN)
)
(
(if (exists newmod)
(delete newmod (optional "force") (infos))
)
(rename origmod newmod)
(set guide "Scalos:Docs/Scalos_Information.guide")
(if (exists guide)
(delete guide (optional "force") (infos))
)
(set @default-dest "Scalos:")
(complete 100)
(exit "\n\n" @app-name " has been restored back to version 2.x")
)
)